libxl: testenum.c depends on libxl.h
authorOlaf Hering <olaf@aepfle.de>
Wed, 6 Jul 2011 15:32:16 +0000 (16:32 +0100)
committerOlaf Hering <olaf@aepfle.de>
Wed, 6 Jul 2011 15:32:16 +0000 (16:32 +0100)
testenum.c may fail to compile if libxl.h dependencies are not yet met.

In file included from testenum.c:3:
libxl.h:199:26: error: _libxl_types.h: No such file or directory
In file included from testenum.c:3:
libxl.h:203: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
....

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/Makefile

index fc8ddca0e62feb7db2a12a130dc22569092814ce..0c9162f919a53eb82821623728eeed99d7580cad 100644 (file)
@@ -52,7 +52,7 @@ $(XL_OBJS): CFLAGS += $(CFLAGS_libxenctrl) # For xentoollog.h
 $(XL_OBJS): CFLAGS += $(CFLAGS_libxenlight)
 
 testenum.o: CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenlight)
-testenum.c: libxl.idl gentest.py
+testenum.c: libxl.idl gentest.py libxl.h
        $(PYTHON) gentest.py libxl.idl testenum.c.new
        mv testenum.c.new testenum.c